<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>日程事务新建/编辑</title>
<link href="/widget/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"  type="text/css"/>
<link href="/widget/iconfont/iconfont.css" rel="stylesheet" />
 {cssjs}
<link href="/res/css/inside_page.css" rel="stylesheet"  type="text/css"/>
<script language="javascript" type="text/javascript" src="/widget/datepicker/WdatePicker.js"></script>
</head>
<body>
<div class="container-fluid larry-wrapper">
    <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12">
            <section class="panel panel-padding">
                <form id="form1" class="layui-form layui-form-pane">
                    <div class="layui-form-item">
                        <label class="layui-form-label">事务名称</label>
                        <div class="layui-input-block">
                            <input type="text" id="title" value="{title}" name="title" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">事务类型</label>
                        <div class="layui-input-inline" style="width:120px;">
                            <select name="type" id="type">
                                <option value="">请选择类型</option>
                                <!-- START types -->
                                <option value="{id}">{name}</option>
                                <!-- END types -->
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">事务内容</label>
                        <div class="layui-input-block">
                          <textarea class="layui-textarea" name="content" id="content">{content}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">开始时间</label>
                        <div class="layui-input-inline">
                          <input class="layui-input" placeholder="开始时间" name="start" value="{start}" id="start" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">结束时间</label>
                        <div class="layui-input-inline">
                           <input class="layui-input" placeholder="结束时间" name="end" value="{end}" id="end" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
                        </div>
                    </div>
                    <input type="hidden" name="id" id="id" value="{id}">
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="button" id="btn_save" value="立即提交" class="layui-btn" />
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </section>
         </div>
     </div>
</div>
   {jsmodel}
   <script type="text/javascript">
        var type ='{type}';
        $('#type').val(type);
        layui.use('schedule_edit');		
    </script>
</body>
</html>
